<%@ include file="/view/jsp/includes/TagLibs.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>APPLICATION_TITLE</title>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
	<meta http-equiv="Content-Language" content="pt-br"/>
	<meta name="description" content="APPLICATION_DESCRIPTION"/>
	<meta name="keywords" content="APPLICATION_DESCRIPTION"/>

	<link href="${pageContext.request.contextPath}/view/templates/mainTemplate/styles/basic.css" rel="stylesheet" media="screen" type="text/css"/>
	<link href="${pageContext.request.contextPath}/view/templates/mainTemplate/styles/print.css" rel="stylesheet" media="print" type="text/css"/>
	<link href="${pageContext.request.contextPath}/view/templates/mainTemplate/styles/theme-green.css" rel="stylesheet" media="screen" type="text/css" title="Green theme"/>
	<link href="${pageContext.request.contextPath}/view/templates/mainTemplate/styles/theme-orange.css" rel="alternate stylesheet" media="screen" type="text/css" title="Orange theme"/>
	<link href="${pageContext.request.contextPath}/view/templates/mainTemplate/styles/theme-blue.css" rel="alternate stylesheet" media="screen" type="text/css" title="Blue theme"/>
	<link href="${pageContext.request.contextPath}/view/templates/mainTemplate/styles/theme-violet.css" rel="alternate stylesheet" media="screen" type="text/css" title="Tema Violeta"/>
	<link href="${pageContext.request.contextPath}/view/templates/mainTemplate/styles/theme-pink.css" rel="alternate stylesheet" media="screen" type="text/css" title="Pink theme"/>
	
	<%
		response.addHeader("Pragma", "No-cache");
		response.addHeader("Cache-Control", "No-cache");
		response.addDateHeader("Expires", 0); 
	%>

	<%@ include file="/view/jsp/includes/JavaScripts.jsp"%>

</head>

<body onload="DWRUtil.useLoadingMessage();">

	<tiles:useAttribute name="pageTitle" scope="request"/>
	<div id="banner"></div>
	<div id="wrapper">
		<div id="top">
			<div id="header">
				<div id="style-switchers">
					<a href="#" title="Blue theme" class="blue default" onclick="setActiveStyleSheet('Blue theme', this); return false"><span>Blue theme</span></a>
					<a href="#" title="Gray theme" class="gray" onclick="setActiveStyleSheet('Gray theme', this); return false"><span>Gray theme</span></a>
					<a href="#" title="Green theme" class="green" onclick="setActiveStyleSheet('Green theme', this); return false"><span>Green theme</span></a>
					<a href="#" title="Orange theme" class="orange" onclick="setActiveStyleSheet('Orange theme', this); return false"><span>Orange theme</span></a>
					<a href="#" title="Pink theme" class="pink" onclick="setActiveStyleSheet('Pink theme', this); return false"><span>Pink theme</span></a>
					<script type="text/javascript">initTheme()</script>
				</div>
			</div>
			<div id="navigation">
				<ul>
					<li class="${requestScope.pageTitle eq 'home' ? 'selected' : ''}"><html:link module="" action="Home.do">Home</html:link></li>
					<jheat:sectionsList/>
				</ul>
			</div>
		</div>
		<div id="container">
			<tiles:insert attribute="mainMenu"/>				
			<div id="content">
				<tiles:insert attribute="body"/>				
			</div>
		</div>
        <div id="footer">&copy; 2008, <a href="http://code.google.com/p/silibrina-snooker/" target="_blank">Billiards League Management System</a></div>
	</div>
</body>
</html>